package com.framework.component.extension.ext.dept;

import com.framework.component.extension.anno.Extension;
import com.framework.component.extension.anno.ExtensionPoint;
import com.framework.component.extension.context.BusinessDomainModel;
import com.framework.component.extension.context.ExtensionContext;
import com.framework.component.extension.context.vo.Dept;
import org.springframework.stereotype.Component;

@Component
@Extension(scenario = "coldchain")
public class SupplyDeptInfoColdChainExt implements ExtensionPoint {

    @Override
    public void execute(ExtensionContext context) {
        BusinessDomainModel model = context.getModel();
        model.assignDept(Dept.builder().deptNo("EBU0001-ColdChain").build());
    }
}
